package me.zhengjie.modules.service.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.modules.domain.enterprise.EnterpriseAdministrativePenalty;
import me.zhengjie.modules.repository.enterprise.EnterpriseAdmPenMapper;
import me.zhengjie.modules.service.EnterpriseAdmPenService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("EnterpriseAdmPenService")
@RequiredArgsConstructor
public class EnterpriseAdmPenServiceImpl implements EnterpriseAdmPenService {

    private final EnterpriseAdmPenMapper enterpriseAdmPenMapper;

    @Override
    public List<EnterpriseAdministrativePenalty> queryEnterpriseAdmPenForPageByName(Map<String,Object> map) {
        return enterpriseAdmPenMapper.selectEnterpriseAdmPenForPageByName(map);
    }

    @Override
    public int queryEnterpriseAdmPenByNameToTotal(Map<String, Object> map) {
        return enterpriseAdmPenMapper.selectEnterpriseAdmPenByNameToTotal(map);
    }
}
